package router

import (
	"fleetmanager/api/controller/resourcespecification"
	"github.com/beego/beego/v2/server/web"
)

func initResourceSpecificationRouters() {
	web.Router("/v1/:project_id/resource-specification", &resourcespecification.QueryController{},
		"get:ListResourceSpecification")
	web.Router("/v1/:project_id/resource-specification/:resource_specification_id", &resourcespecification.QueryController{},
		"get:ShowResourceSpecification")
	web.Router("/v1/:project_id/resource-specification", &resourcespecification.CreateController{},
		"post:CreateResourceSpecification")
	web.Router("/v1/:project_id/resource-specification", &resourcespecification.UpdateController{},
		"put:UpdateResourceSpecification")
	web.Router("/v1/:project_id/resource-specification/:resource_specification_id", &resourcespecification.DeleteController{},
		"delete:DeleteResourceSpecification")
}
